/**
 * @file
 * @date 2020-09-09
 * @brief Orb claim widget
 */

#pragma once

#include "state.h"

#include <QWidget>

class QToolButton;
class QSpinBox;

/**
 * @class PowerOrbWidget
 * @brief orb claim widget
 */
class PowerOrbWidget : public QWidget {
    Q_OBJECT

public:
    explicit PowerOrbWidget(QWidget * parent = nullptr);

    /**
     * @brief update views from player data
     */
    void updateData( const State & state);

private:
    QSpinBox * orbSpinBox;
    QToolButton * orbButton;
    QWidget * cost;
};
